package o;

import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import com.huawei.gamebox.plugin.gameservice.bean.RealName;

public class ezd extends eyu {
    public static final String API_METHOD = "client.gs.updateRealName";
    private RealName mRealNameObj;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String realName_;

    public ezd(GameInfo gameInfo) {
        super(gameInfo);
    }

    public static ezd ˏ(GameInfo gameInfo, RealName realName) {
        ezd o_ezd = new ezd(gameInfo);
        o_ezd.setMethod_(API_METHOD);
        o_ezd.targetServer = "jxs.url";
        o_ezd.setStoreApi("gbClientApi");
        o_ezd.ˊ(realName);
        o_ezd.ॱ(epk.ˏ());
        return o_ezd;
    }

    protected void onSetValue() {
        super.onSetValue();
        if (this.mRealNameObj != null) {
            try {
                ॱ(this.mRealNameObj.toJson());
            } catch (Exception e) {
                Logger.e(cvs.TAG, "onSetValue error ");
            }
        }
    }

    public void ॱ(String str) {
        this.realName_ = str;
    }

    public void ˊ(RealName realName) {
        this.mRealNameObj = realName;
    }
}
